function remove(bid){
	$('#myModal').modal('show');
	$.post("../asset/remove_Building.action",{"building.bid":bid}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("房务建筑物信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var qzbh=$("#qzbh").val();
	var bname=$("#bname").val();
	var struct=$("#struct").val();
	var mdept=$("#mdept").val();
	window.location.assign("../asset/exportExcel_Building.action?building.qzbh="+qzbh+"&building.bname="+bname+"&building.struct="+struct+"&building.mdept="+mdept);
}
function allExport(){
	window.location.assign("../asset/exportExcel_Building.action");
}
function conditionPrint(){
	var qzbh=$("#qzbh").val();
	var bname=$("#bname").val();
	var struct=$("#struct").val();
	var mdept=$("#mdept").val();
	$("#print_building").attr("src","../asset/print_Building.action?building.qzbh="+qzbh+"&building.bname="+bname+"&building.struct="+struct+"&building.mdept="+mdept);
}
function allPrint(){
	$("#print_building").attr("src","../asset/print_Building.action");
}